@use "@/styles/namespace.scss" as *;

$prefix-class: #{$admin-namespace}-tree-filter;

.#{$prefix-class} {
  box-sizing: border-box;
  width: 220px;
  height: 100%;
  padding: 18px;
  margin-right: 10px;

  &__title {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: bold;
    color: var(--#{$el-namespace}-color-info-dark-2);
    letter-spacing: 0.5px;
  }

  .#{$el-namespace}-input {
    margin: 0 0 15px;
  }

  .#{$el-namespace}-scrollbar {
    :deep(.#{$el-namespace}-tree) {
      height: 80%;
      overflow: auto;

      .#{$el-namespace}-tree-node__content {
        height: 33px;
      }
    }

    :deep(.#{$el-namespace}-tree--highlight-current) {
      .#{$el-namespace}-tree-node.is-current > .#{$el-namespace}-tree-node__content {
        background-color: var(--#{$el-namespace}-color-primary);

        .#{$el-namespace}-tree-node__label,
        .#{$el-namespace}-tree-node__expand-icon {
          color: white;
        }

        .is-leaf {
          color: transparent;
        }
      }
    }
  }
}
